package com.realgodo.site.entity.space;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.realgodo.site.entity.IdEntity;

@Entity(name="SpaceCover")
@Table(name="space_cover")
public class SpaceCover extends IdEntity {

	private static final long serialVersionUID = 3896871619931721978L;
	
	private Space space;
	
	private String path;

	public static final int MAX_RUSULT = 4;
	@ManyToOne
	@JoinColumn(name = "space_id", referencedColumnName = "id", nullable = false)
	public Space getSpace() {
		return space;
	}

	public void setSpace(Space space) {
		this.space = space;
	}

	@Column(name = "path")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	
	

}
